#ifndef __CN_TCPCLIENT_H__
#define __CN_TCPCLIENT_H__
#include <string.h>
#include "wm_include.h"
/**
 * @typedef struct demo_sock_c
 */
typedef struct demo_sock_c{
//    OS_STK *sock_c_task_stk;
    tls_os_queue_t *sock_c_q;
//    OS_STK *sock_rcv_task_stk;
    char *sock_rx;
    char *sock_tx;
    bool socket_ok;
    int socket_num;
    int remote_port;
    u32 remote_ip;
    u32 rcv_data_len;
    int snd_skt_no;
    int snd_data_len;
	int uart_trans;
	int uart_txlen;

}ST_Demo_Sock_Client;

extern ST_Demo_Sock_Client *cn_sock_client;
int client_connect_wif_net(void);
int Socket_Client_Create(u32 ip_addr,int port);
int send_tcpclient(uint8_t *data,uint32_t len);
#endif
